/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.autosalon.ui.customer.state.addAdress;

import com.autosalon.ui.customer.Customer;
import com.autosalon.ui.customer.state.ICustomerState;

/**
 *
 * @author Kubík
 */
public class AddAressState_Invitor implements ICustomerState {

    @Override
    public void initButtons(Customer customer) {
        customer.getBtnAddCustumer().setVisible(true);
        customer.getBtnEditCustomer().setVisible(false);
        customer.getBtnSaveEdistCustomer().setVisible(false);
        customer.getBtnEditBackCustomer().setVisible(false);
        customer.getBtnNewCustomer().setVisible(false);
        customer.getBtnAddAdress().setVisible(true);
        customer.getBtnRemoveAdress().setVisible(true);
        customer.getComRole().setVisible(false);
    }

    @Override
    public void initLabels(Customer customer) {

        customer.getLbAlreadyRegister().setVisible(false);
        customer.getLbSaveCustomer().setVisible(false);
        customer.getLbSaveUpdateCustomer().setVisible(false);
        customer.getFilterFieldName().setVisible(false);
        customer.getFilterFieldSname().setVisible(false);



    }

    @Override
    public void initTabs(Customer customer) {
        customer.getNewCustomer().setVisible(true);

    }

    @Override
    public void initForms(Customer customer) {
        customer.getCustomers().setVisible(false);
    }
}
